package cn.sparrowx.cloud.config;

import cn.sparrowx.cloud.common.FeignConfiguration;
import cn.sparrowx.cloud.common.HystrixClientFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * cn.sparrowx.cloud.config
 *
 * @author bosong
 * @since 2018/6/13 10:44.
 */
@Component
@FeignClient(value = "config-x", fallback = HystrixClientFallback.class, configuration = FeignConfiguration.class)
public interface feginConfig {

    @RequestMapping("/fegin")
    String fegin();
}
